package com.petshop.transactionrecords.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.petshop.common.annotation.Excel;
import com.petshop.common.core.domain.BaseEntity;

/**
 * 交易记录对象 pet_transactionrecords
 *
 * @author ruoyi
 * @date 2024-09-12
 */
public class PetTransactionrecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易编号 */
    private Long transactionID;

    /** 顾客姓名 */
    @Excel(name = "顾客姓名")
    private String customerName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionTime;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalAmount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 操作员 */
    @Excel(name = "操作员")
    private Long operatorID;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long quantity;

    public void setTransactionID(Long transactionID)
    {
        this.transactionID = transactionID;
    }

    public Long getTransactionID()
    {
        return transactionID;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setTransactionTime(Date transactionTime)
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime()
    {
        return transactionTime;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setOperatorID(Long operatorID)
    {
        this.operatorID = operatorID;
    }

    public Long getOperatorID()
    {
        return operatorID;
    }
    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("transactionID", getTransactionID())
                .append("customerName", getCustomerName())
                .append("productName", getProductName())
                .append("transactionTime", getTransactionTime())
                .append("totalAmount", getTotalAmount())
                .append("paymentMethod", getPaymentMethod())
                .append("operatorID", getOperatorID())
                .append("notes", getNotes())
                .append("quantity", getQuantity())
                .toString();
    }
}
